<?php
/*
 * Created on 2013-8-24
 *
 * 下载失败的图片重新下载
 * 
 */
error_reporting(E_ALL);
ini_set('display_errors',1);
set_time_limit(0);  
include_once dirname(dirname(dirname(__FILE__))).'/mgtv_init.php';
include_once dirname(dirname(__FILE__)).'/init.php';
$db = nl_get_db(NL_DB_READ);
$db->open();
$db_w = nl_get_db(NL_DB_WRITE);
$db_w->open();

$sql="select nns_id from nns_vod where nns_all_index=1";

$list = nl_db_get_all($sql, $db);
foreach ($list as  $value) {
	$sql="update nns_mgtvbk_c2_task set nns_status=0 where nns_type='vod' and nns_org_id='fjyd' and nns_ref_id='{$value['nns_id']}'";
	nl_execute_by_db($sql,$db_w);
}





